package com.dy.lock.screen.dao.impl;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.MaterialCollectDao;
import com.dy.lock.screen.pojo.MaterialCollectInfo;

@Repository("materialCollectDao")
public class MaterialCollectDaoImpl extends
		BaseDaoImpl<MaterialCollectInfo, String> implements MaterialCollectDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.MaterialCollectMapper";
	}

	@Override
	public MaterialCollectInfo queryByPrimaryKey(String id) {
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".selectByPrimaryKey", id);
	}

	@Override
	public MaterialCollectInfo queryByMidAndCid(MaterialCollectInfo collectInfo) {
		// TODO Auto-generated method stub
		return this.getSqlSession().selectOne(
				getQueryNamespace() + ".queryByMidAndCid", collectInfo);
	}

}
